package com.yuoj.codesandbox.unsafe;


import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;

public class ReadFileError {
    public static void main(String[] args) throws IOException {
        String userDir = System.getProperty("user.dir");
        System.out.println(userDir);
        String filePath = userDir + File.separator + "src/main/resources/application.yml";
        System.out.println(filePath);
        Path path = Paths.get(filePath);
        List<String> informationList = Files.readAllLines(path);
        for (String s : informationList) {
            System.out.println(s);
        }
    }
}
